using System;
using Castle.MonoRail.Framework;

namespace GettingStartedSample.Controllers
{
    [Layout("default"), Rescue("generalerror")]
    public class HomeController : SmartDispatcherController
    {
        public void Index()
        {
        }

        public void ErroneousAction()
        {
            throw new Exception("Forced exception to test Rescue");
        }
    }
}